/*
 * hostjoin.h
 *
 *  Created on: 2011-10-21
 *  Author    : gelif(admin@gelif.net)
 */

#ifndef HOSTJOIN_H_
#define HOSTJOIN_H_

#ifdef __BORLANDC__
	#pragma hdrstop
#endif

#ifndef WX_PRECOMP
	#include <wx/wx.h>
	#include <wx/dialog.h>
#else
	#include <wx/wxprec.h>
#endif

#include <wx/button.h>
#include <wx/stattext.h>
#include <wx/textctrl.h>
#include <wx/panel.h>

////Dialog Style Start
#undef HOSTJOINDIALOG_STYLE
#define HOSTJOINDIALOG_STYLE wxCAPTION | wxSYSTEM_MENU | wxDIALOG_NO_PARENT
////Dialog Style End

class HostJoinDialog : public wxDialog
{
	private:
		DECLARE_EVENT_TABLE();
		
	public:
		HostJoinDialog(wxWindow *parent, wxWindowID id = 1, const wxString &title = wxT("Network Setup"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = HOSTJOINDIALOG_STYLE);
		virtual ~HostJoinDialog();
		void onSubmitClick(wxCommandEvent& event);
		void onCancelClick(wxCommandEvent& event);
	
	public:
		wxButton *buttonCancel;
		wxButton *buttonSubmit;
		wxStaticText *wxStaticText1;
		wxTextCtrl *editPort;
		wxStaticText *wxStaticText2;
		wxTextCtrl *editAddress;
		wxStaticText *wxStaticText3;
		wxTextCtrl *editName;
		wxPanel *WxPanel1;
		
	private:
		enum
		{
			ID_BUTTONCANCEL = 1046,
			ID_BUTTONGOFORIT = 1045,
			ID_WXSTATICTEXT1 = 1043,
			ID_EDITPORT = 1042,
			ID_WXSTATICTEXT2 = 1041,
			ID_EDITADDRESS = 1040,
			ID_WXSTATICTEXT3 = 1039,
			ID_EDITNAME = 1038,
			ID_WXPANEL1 = 1001,
			ID_DUMMY_VALUE_ //don't remove this value unless you have other enum values
		};
	
	private:
		void onClose(wxCloseEvent& event);
		void createGUIControls();
};

#endif
